#!/bin/bash  
  
export OHOS_NDK="/home/groot/ohos_sdk_40/linux/native"  
export TOOLCHAIN="$OHOS_NDK/build/cmake/ohos.toolchain.cmake"
export PATH=$PATH:$OHOS_NDK/build-tools/cmake/bin

rm -rf ./out

TAG="arm64-v8a" 
#TAG="armeabi-v7a"

cmake libupnp -G Ninja -B out -DCMAKE_SKIP_INSTALL_RPATH=ON -DCMAKE_TOOLCHAIN_FILE=$TOOLCHAIN -DOHOS_ARCH="$TAG" -DCMAKE_BUILD_TYPE=Debug -Wdev 

cmake --build out
